.class public Lorg/microemu/cldc/file/FileSystemFileConnection;
.super Ljava/lang/Object;
.source "FileSystemFileConnection.java"

# interfaces
.implements Ljavax/microedition/io/file/FileConnection;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lorg/microemu/cldc/file/FileSystemFileConnection$PrivilegedBooleanAction;
    }
.end annotation


# static fields
.field private static final DIR_SEP:C = '/'

.field private static final DIR_SEP_STR:Ljava/lang/String; = "/"

.field private static java15:Z


# instance fields
.field private acc:Ljava/security/AccessControlContext;

.field private file:Ljava/io/File;

.field private fsRoot:Ljava/io/File;

.field private fsRootConfig:Ljava/lang/String;

.field private fullPath:Ljava/lang/String;

.field private host:Ljava/lang/String;

.field private isDirectory:Z

.field private isRoot:Z

.field private locationClosedFrom:Ljava/lang/Throwable;

.field private notifyClosed:Lorg/microemu/cldc/file/FileSystemConnectorImpl;

.field private opendInputStream:Ljava/io/InputStream;

.field private opendOutputStream:Ljava/io/OutputStream;


# direct methods
.method static constructor <clinit>()V
    .locals 1

    .prologue
    .line 81
    const/4 v0, 0x0

    sput-boolean v0, Lorg/microemu/cldc/file/FileSystemFileConnection;->java15:Z

    return-void
.end method

.method constructor <init>(Ljava/lang/String;Ljava/lang/String;Lorg/microemu/cldc/file/FileSystemConnectorImpl;)V
    .locals 8
    .parameter "fsRootConfig"
    .parameter "name"
    .parameter "notifyClosed"
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .prologue
    const/4 v3, -0x1

    const/16 v6, 0x2f

    const/4 v5, 0x0

    const/4 v4, 0x1

    const-string v7, "Invalid path "

    .line 83
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 66
    const/4 v2, 0x0

    iput-object v2, p0, Lorg/microemu/cldc/file/FileSystemFileConnection;->locationClosedFrom:Ljava/lang/Throwable;

    .line 85
    invoke-virtual {p2, v6}, Ljava/lang/String;->indexOf(I)I

    move-result v0

    .line 86
    .local v0, hostEnd:I
    if-ne v0, v3, :cond_0

    .line 87
    new-instance v2, Ljava/io/IOException;

    new-instance v3, Ljava/lang/StringBuffer;

    invoke-direct {v3}, Ljava/lang/StringBuffer;-><init>()V

    const-string v4, "Invalid path "

    invoke-virtual {v3, v7}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v3

    invoke-virtual {v3, p2}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-direct {v2, v3}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V

    throw v2

    .line 89
    :cond_0
    iput-object p1, p0, Lorg/microemu/cldc/file/FileSystemFileConnection;->fsRootConfig:Ljava/lang/String;

    .line 90
    iput-object p3, p0, Lorg/microemu/cldc/file/FileSystemFileConnection;->notifyClosed:Lorg/microemu/cldc/file/FileSystemConnectorImpl;

    .line 92
    invoke-virtual {p2, v5, v0}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v2

    iput-object v2, p0, Lorg/microemu/cldc/file/FileSystemFileConnection;->host:Ljava/lang/String;

    .line 93
    add-int/lit8 v2, v0, 0x1

    invoke-virtual {p2, v2}, Ljava/lang/String;->substring(I)Ljava/lang/String;

    move-result-object v2

    iput-object v2, p0, Lorg/microemu/cldc/file/FileSystemFileConnection;->fullPath:Ljava/lang/String;

    .line 94
    iget-object v2, p0, Lorg/microemu/cldc/file/FileSystemFileConnection;->fullPath:Ljava/lang/String;

    invoke-virtual {v2}, Ljava/lang/String;->length()I

    move-result v2

    if-nez v2, :cond_1

    .line 95
    new-instance v2, Ljava/io/IOException;

    new-instance v3, Ljava/lang/StringBuffer;

    invoke-direct {v3}, Ljava/lang/StringBuffer;-><init>()V

    const-string v4, "Invalid path "

    invoke-virtual {v3, v7}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v3

    invoke-virtual {v3, p2}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-direct {v2, v3}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V

    throw v2

    .line 97
    :cond_1
    iget-object v2, p0, Lorg/microemu/cldc/file/FileSystemFileConnection;->fullPath:Ljava/lang/String;

    invoke-virtual {v2, v6}, Ljava/lang/String;->indexOf(I)I

    move-result v1

    .line 98
    .local v1, rootEnd:I
    if-eq v1, v3, :cond_2

    iget-object v2, p0, Lorg/microemu/cldc/file/FileSystemFileConnection;->fullPath:Ljava/lang/String;

    invoke-virtual {v2}, Ljava/lang/String;->length()I

    move-result v2

    sub-int/2addr v2, v4

    if-ne v1, v2, :cond_4

    :cond_2
    move v2, v4

    :goto_0
    iput-boolean v2, p0, Lorg/microemu/cldc/file/FileSystemFileConnection;->isRoot:Z

    .line 99
    iget-object v2, p0, Lorg/microemu/cldc/file/FileSystemFileConnection;->fullPath:Ljava/lang/String;

    iget-object v3, p0, Lorg/microemu/cldc/file/FileSystemFileConnection;->fullPath:Ljava/lang/String;

    invoke-virtual {v3}, Ljava/lang/String;->length()I

    move-result v3

    sub-int/2addr v3, v4

    invoke-virtual {v2, v3}, Ljava/lang/String;->charAt(I)C

    move-result v2

    if-ne v2, v6, :cond_3

    .line 100
    iget-object v2, p0, Lorg/microemu/cldc/file/FileSystemFileConnection;->fullPath:Ljava/lang/String;

    iget-object v3, p0, Lorg/microemu/cldc/file/FileSystemFileConnection;->fullPath:Ljava/lang/String;

    invoke-virtual {v3}, Ljava/lang/String;->length()I

    move-result v3

    sub-int/2addr v3, v4

    invoke-virtual {v2, v5, v3}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v2

    iput-object v2, p0, Lorg/microemu/cldc/file/FileSystemFileConnection;->fullPath:Ljava/lang/String;

    .line 102
    :cond_3
    invoke-static {}, Ljava/security/AccessController;->getContext()Ljava/security/AccessControlContext;

    move-result-object v2

    iput-object v2, p0, Lorg/microemu/cldc/file/FileSystemFileConnection;->acc:Ljava/security/AccessControlContext;

    .line 103
    new-instance v2, Lorg/microemu/cldc/file/FileSystemFileConnection$1;

    invoke-direct {v2, p0}, Lorg/microemu/cldc/file/FileSystemFileConnection$1;-><init>(Lorg/microemu/cldc/file/FileSystemFileConnection;)V

    iget-object v3, p0, Lorg/microemu/cldc/file/FileSystemFileConnection;->acc:Ljava/security/AccessControlContext;

    invoke-static {v2, v3}, Ljava/security/AccessController;->doPrivileged(Ljava/security/PrivilegedAction;Ljava/security/AccessControlContext;)Ljava/lang/Object;

    .line 111
    return-void

    :cond_4
    move v2, v5

    .line 98
    goto :goto_0
.end method

.method static access$000(Lorg/microemu/cldc/file/FileSystemFileConnection;)Ljava/io/File;
    .locals 1
    .parameter "x0"

    .prologue
    .line 50
    iget-object v0, p0, Lorg/microemu/cldc/file/FileSystemFileConnection;->fsRoot:Ljava/io/File;

    return-object v0
.end method

.method static access$002(Lorg/microemu/cldc/file/FileSystemFileConnection;Ljava/io/File;)Ljava/io/File;
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 50
    iput-object p1, p0, Lorg/microemu/cldc/file/FileSystemFileConnection;->fsRoot:Ljava/io/File;

    return-object p1
.end method

.method static access$100(Lorg/microemu/cldc/file/FileSystemFileConnection;)Ljava/lang/String;
    .locals 1
    .parameter "x0"

    .prologue
    .line 50
    iget-object v0, p0, Lorg/microemu/cldc/file/FileSystemFileConnection;->fsRootConfig:Ljava/lang/String;

    return-object v0
.end method

.method static access$1102(Lorg/microemu/cldc/file/FileSystemFileConnection;Ljava/io/OutputStream;)Ljava/io/OutputStream;
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 50
    iput-object p1, p0, Lorg/microemu/cldc/file/FileSystemFileConnection;->opendOutputStream:Ljava/io/OutputStream;

    return-object p1
.end method

.method static access$200(Lorg/microemu/cldc/file/FileSystemFileConnection;)Ljava/io/File;
    .locals 1
    .parameter "x0"

    .prologue
    .line 50
    iget-object v0, p0, Lorg/microemu/cldc/file/FileSystemFileConnection;->file:Ljava/io/File;

    return-object v0
.end method

.method static access$202(Lorg/microemu/cldc/file/FileSystemFileConnection;Ljava/io/File;)Ljava/io/File;
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 50
    iput-object p1, p0, Lorg/microemu/cldc/file/FileSystemFileConnection;->file:Ljava/io/File;

    return-object p1
.end method

.method static access$300(Lorg/microemu/cldc/file/FileSystemFileConnection;)Ljava/lang/String;
    .locals 1
    .parameter "x0"

    .prologue
    .line 50
    iget-object v0, p0, Lorg/microemu/cldc/file/FileSystemFileConnection;->fullPath:Ljava/lang/String;

    return-object v0
.end method

.method static access$402(Lorg/microemu/cldc/file/FileSystemFileConnection;Z)Z
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 50
    iput-boolean p1, p0, Lorg/microemu/cldc/file/FileSystemFileConnection;->isDirectory:Z

    return p1
.end method

.method static access$600(Ljava/io/File;Z)J
    .locals 2
    .parameter "x0"
    .parameter "x1"
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .prologue
    .line 50
    invoke-static {p0, p1}, Lorg/microemu/cldc/file/FileSystemFileConnection;->directorySize(Ljava/io/File;Z)J

    move-result-wide v0

    return-wide v0
.end method

.method static access$700(Lorg/microemu/cldc/file/FileSystemFileConnection;Ljava/lang/String;Z)Ljava/util/Enumeration;
    .locals 1
    .parameter "x0"
    .parameter "x1"
    .parameter "x2"
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .prologue
    .line 50
    invoke-direct {p0, p1, p2}, Lorg/microemu/cldc/file/FileSystemFileConnection;->listPrivileged(Ljava/lang/String;Z)Ljava/util/Enumeration;

    move-result-object v0

    return-object v0
.end method

.method static access$902(Lorg/microemu/cldc/file/FileSystemFileConnection;Ljava/io/InputStream;)Ljava/io/InputStream;
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 50
    iput-object p1, p0, Lorg/microemu/cldc/file/FileSystemFileConnection;->opendInputStream:Ljava/io/InputStream;

    return-object p1
.end method

.method private static directorySize(Ljava/io/File;Z)J
    .locals 7
    .parameter "dir"
    .parameter "includeSubDirs"
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .prologue
    .line 256
    const-wide/16 v3, 0x0

    .line 258
    .local v3, size:J
    invoke-virtual {p0}, Ljava/io/File;->listFiles()[Ljava/io/File;

    move-result-object v1

    .line 259
    .local v1, files:[Ljava/io/File;
    if-nez v1, :cond_0

    .line 260
    const-wide/16 v5, 0x0

    .line 272
    :goto_0
    return-wide v5

    .line 262
    :cond_0
    const/4 v2, 0x0

    .local v2, i:I
    :goto_1
    array-length v5, v1

    if-ge v2, v5, :cond_2

    .line 263
    aget-object v0, v1, v2

    .line 265
    .local v0, child:Ljava/io/File;
    if-eqz p1, :cond_1

    invoke-virtual {v0}, Ljava/io/File;->isDirectory()Z

    move-result v5

    if-eqz v5, :cond_1

    .line 266
    const/4 v5, 0x1

    invoke-static {v0, v5}, Lorg/microemu/cldc/file/FileSystemFileConnection;->directorySize(Ljava/io/File;Z)J

    move-result-wide v5

    add-long/2addr v3, v5

    .line 262
    :goto_2
    add-int/lit8 v2, v2, 0x1

    goto :goto_1

    .line 268
    :cond_1
    invoke-virtual {v0}, Ljava/io/File;->length()J

    move-result-wide v5

    add-long/2addr v3, v5

    goto :goto_2

    .end local v0           #child:Ljava/io/File;
    :cond_2
    move-wide v5, v3

    .line 272
    goto :goto_0
.end method

.method private doPrivilegedBoolean(Lorg/microemu/cldc/file/FileSystemFileConnection$PrivilegedBooleanAction;)Z
    .locals 1
    .parameter "action"

    .prologue
    .line 126
    invoke-static {p1}, Ljava/security/AccessController;->doPrivileged(Ljava/security/PrivilegedAction;)Ljava/lang/Object;

    move-result-object p0

    .end local p0
    check-cast p0, Ljava/lang/Boolean;

    invoke-virtual {p0}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v0

    return v0
.end method

.method private doPrivilegedIO(Ljava/security/PrivilegedExceptionAction;)Ljava/lang/Object;
    .locals 1
    .parameter "action"
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .prologue
    .line 114
    iget-object v0, p0, Lorg/microemu/cldc/file/FileSystemFileConnection;->acc:Ljava/security/AccessControlContext;

    invoke-static {p1, v0}, Lorg/microemu/cldc/file/FileSystemConnectorImpl;->doPrivilegedIO(Ljava/security/PrivilegedExceptionAction;Ljava/security/AccessControlContext;)Ljava/lang/Object;

    move-result-object v0

    return-object v0
.end method

.method private fileSetJava16(Ljava/lang/String;Ljava/lang/Boolean;)V
    .locals 8
    .parameter "mehtodName"
    .parameter "param"
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .prologue
    const/4 v6, 0x1

    const-string v7, "Not supported on Java version < 6"

    .line 517
    sget-boolean v2, Lorg/microemu/cldc/file/FileSystemFileConnection;->java15:Z

    if-eqz v2, :cond_0

    .line 518
    new-instance v2, Ljava/io/IOException;

    const-string v3, "Not supported on Java version < 6"

    invoke-direct {v2, v7}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V

    throw v2

    .line 522
    :cond_0
    :try_start_0
    iget-object v2, p0, Lorg/microemu/cldc/file/FileSystemFileConnection;->file:Ljava/io/File;

    invoke-virtual {v2}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v2

    const/4 v3, 0x1

    new-array v3, v3, [Ljava/lang/Class;

    const/4 v4, 0x0

    sget-object v5, Ljava/lang/Boolean;->TYPE:Ljava/lang/Class;

    aput-object v5, v3, v4

    invoke-virtual {v2, p1, v3}, Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;

    move-result-object v1

    .line 523
    .local v1, setWritable:Ljava/lang/reflect/Method;
    new-instance v2, Lorg/microemu/cldc/file/FileSystemFileConnection$16;

    invoke-direct {v2, p0, v1, p2}, Lorg/microemu/cldc/file/FileSystemFileConnection$16;-><init>(Lorg/microemu/cldc/file/FileSystemFileConnection;Ljava/lang/reflect/Method;Ljava/lang/Boolean;)V

    invoke-direct {p0, v2}, Lorg/microemu/cldc/file/FileSystemFileConnection;->doPrivilegedIO(Ljava/security/PrivilegedExceptionAction;)Ljava/lang/Object;
    :try_end_0
    .catch Ljava/lang/NoSuchMethodException; {:try_start_0 .. :try_end_0} :catch_0

    .line 538
    return-void

    .line 534
    .end local v1           #setWritable:Ljava/lang/reflect/Method;
    :catch_0
    move-exception v2

    move-object v0, v2

    .line 535
    .local v0, e:Ljava/lang/NoSuchMethodException;
    sput-boolean v6, Lorg/microemu/cldc/file/FileSystemFileConnection;->java15:Z

    .line 536
    new-instance v2, Ljava/io/IOException;

    const-string v3, "Not supported on Java version < 6"

    invoke-direct {v2, v7}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V

    throw v2
.end method

.method private getFileValueJava6(Ljava/lang/String;)J
    .locals 6
    .parameter "mehtodName"
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/lang/SecurityException;
        }
    .end annotation

    .prologue
    const-string v5, "Not supported on Java version < 6"

    .line 541
    sget-boolean v3, Lorg/microemu/cldc/file/FileSystemFileConnection;->java15:Z

    if-eqz v3, :cond_0

    .line 542
    new-instance v3, Ljava/lang/SecurityException;

    const-string v4, "Not supported on Java version < 6"

    invoke-direct {v3, v5}, Ljava/lang/SecurityException;-><init>(Ljava/lang/String;)V

    throw v3

    .line 546
    :cond_0
    :try_start_0
    iget-object v3, p0, Lorg/microemu/cldc/file/FileSystemFileConnection;->file:Ljava/io/File;

    invoke-virtual {v3}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v3

    const/4 v4, 0x0

    new-array v4, v4, [Ljava/lang/Class;

    invoke-virtual {v3, p1, v4}, Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;

    move-result-object v1

    .line 547
    .local v1, getter:Ljava/lang/reflect/Method;
    new-instance v3, Lorg/microemu/cldc/file/FileSystemFileConnection$17;

    invoke-direct {v3, p0, v1}, Lorg/microemu/cldc/file/FileSystemFileConnection$17;-><init>(Lorg/microemu/cldc/file/FileSystemFileConnection;Ljava/lang/reflect/Method;)V

    invoke-direct {p0, v3}, Lorg/microemu/cldc/file/FileSystemFileConnection;->doPrivilegedIO(Ljava/security/PrivilegedExceptionAction;)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/lang/Long;

    .line 556
    .local v2, rc:Ljava/lang/Long;
    invoke-virtual {v2}, Ljava/lang/Long;->longValue()J
    :try_end_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
    .catch Ljava/lang/NoSuchMethodException; {:try_start_0 .. :try_end_0} :catch_1

    move-result-wide v3

    return-wide v3

    .line 557
    .end local v1           #getter:Ljava/lang/reflect/Method;
    .end local v2           #rc:Ljava/lang/Long;
    :catch_0
    move-exception v3

    move-object v0, v3

    .line 558
    .local v0, e:Ljava/io/IOException;
    new-instance v3, Ljava/lang/SecurityException;

    invoke-virtual {v0}, Ljava/io/IOException;->getMessage()Ljava/lang/String;

    move-result-object v4

    invoke-direct {v3, v4}, Ljava/lang/SecurityException;-><init>(Ljava/lang/String;)V

    throw v3

    .line 559
    .end local v0           #e:Ljava/io/IOException;
    :catch_1
    move-exception v3

    move-object v0, v3

    .line 560
    .local v0, e:Ljava/lang/NoSuchMethodException;
    const/4 v3, 0x1

    sput-boolean v3, Lorg/microemu/cldc/file/FileSystemFileConnection;->java15:Z

    .line 561
    new-instance v3, Ljava/lang/SecurityException;

    const-string v4, "Not supported on Java version < 6"

    invoke-direct {v3, v5}, Ljava/lang/SecurityException;-><init>(Ljava/lang/String;)V

    throw v3
.end method

.method public static getRoot(Ljava/lang/String;)Ljava/io/File;
    .locals 7
    .parameter "fsRootConfig"

    .prologue
    .line 131
    if-nez p0, :cond_3

    .line 132
    :try_start_0
    new-instance v1, Ljava/io/File;

    new-instance v4, Ljava/lang/StringBuffer;

    invoke-direct {v4}, Ljava/lang/StringBuffer;-><init>()V

    const-string v5, "user.home"

    invoke-static {v5}, Ljava/lang/System;->getProperty(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v4, v5}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v4

    const-string v5, "/.microemulator/filesystem"

    invoke-virtual {v4, v5}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-direct {v1, v4}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 133
    .local v1, fsRoot:Ljava/io/File;
    invoke-virtual {v1}, Ljava/io/File;->exists()Z

    move-result v4

    if-nez v4, :cond_2

    .line 134
    invoke-virtual {v1}, Ljava/io/File;->mkdirs()Z

    move-result v4

    if-nez v4, :cond_0

    .line 135
    new-instance v4, Ljava/lang/RuntimeException;

    new-instance v5, Ljava/lang/StringBuffer;

    invoke-direct {v5}, Ljava/lang/StringBuffer;-><init>()V

    const-string v6, "Can\'t create filesystem root "

    invoke-virtual {v5, v6}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v5

    invoke-virtual {v1}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v5, v6}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object v5

    invoke-direct {v4, v5}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;)V

    throw v4
    :try_end_0
    .catch Ljava/lang/SecurityException; {:try_start_0 .. :try_end_0} :catch_0

    .line 155
    .end local v1           #fsRoot:Ljava/io/File;
    :catch_0
    move-exception v4

    move-object v0, v4

    .line 156
    .local v0, e:Ljava/lang/SecurityException;
    sget-object v4, Ljava/lang/System;->out:Ljava/io/PrintStream;

    new-instance v5, Ljava/lang/StringBuffer;

    invoke-direct {v5}, Ljava/lang/StringBuffer;-><init>()V

    const-string v6, "Cannot access user.home "

    invoke-virtual {v5, v6}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v5

    invoke-virtual {v5, v0}, Ljava/lang/StringBuffer;->append(Ljava/lang/Object;)Ljava/lang/StringBuffer;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v4, v5}, Ljava/io/PrintStream;->println(Ljava/lang/String;)V

    .line 157
    const/4 v4, 0x0

    .end local v0           #e:Ljava/lang/SecurityException;
    :goto_0
    return-object v4

    .line 138
    .restart local v1       #fsRoot:Ljava/io/File;
    :cond_0
    :try_start_1
    new-instance v2, Ljava/io/File;

    const-string v4, "c"

    invoke-direct {v2, v1, v4}, Ljava/io/File;-><init>(Ljava/io/File;Ljava/lang/String;)V

    .line 139
    .local v2, rootC:Ljava/io/File;
    invoke-virtual {v2}, Ljava/io/File;->exists()Z

    move-result v4

    if-nez v4, :cond_1

    .line 140
    invoke-virtual {v2}, Ljava/io/File;->mkdirs()Z

    .line 142
    :cond_1
    new-instance v3, Ljava/io/File;

    const-string v4, "e"

    invoke-direct {v3, v1, v4}, Ljava/io/File;-><init>(Ljava/io/File;Ljava/lang/String;)V

    .line 143
    .local v3, rootE:Ljava/io/File;
    invoke-virtual {v3}, Ljava/io/File;->exists()Z

    move-result v4

    if-nez v4, :cond_2

    .line 144
    invoke-virtual {v3}, Ljava/io/File;->mkdirs()Z

    .end local v2           #rootC:Ljava/io/File;
    .end local v3           #rootE:Ljava/io/File;
    :cond_2
    move-object v4, v1

    .line 147
    goto :goto_0

    .line 149
    .end local v1           #fsRoot:Ljava/io/File;
    :cond_3
    new-instance v1, Ljava/io/File;

    invoke-direct {v1, p0}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 150
    .restart local v1       #fsRoot:Ljava/io/File;
    invoke-virtual {v1}, Ljava/io/File;->isDirectory()Z

    move-result v4

    if-nez v4, :cond_4

    .line 151
    new-instance v4, Ljava/lang/RuntimeException;

    new-instance v5, Ljava/lang/StringBuffer;

    invoke-direct {v5}, Ljava/lang/StringBuffer;-><init>()V

    const-string v6, "Can\'t find filesystem root "

    invoke-virtual {v5, v6}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v5

    invoke-virtual {v1}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v5, v6}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object v5

    invoke-direct {v4, v5}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;)V

    throw v4
    :try_end_1
    .catch Ljava/lang/SecurityException; {:try_start_1 .. :try_end_1} :catch_0

    :cond_4
    move-object v4, v1

    .line 153
    goto :goto_0
.end method

.method private listPrivileged(Ljava/lang/String;Z)Ljava/util/Enumeration;
    .locals 8
    .parameter "filter"
    .parameter "includeHidden"
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .prologue
    .line 384
    iget-object v5, p0, Lorg/microemu/cldc/file/FileSystemFileConnection;->file:Ljava/io/File;

    invoke-virtual {v5}, Ljava/io/File;->isDirectory()Z

    move-result v5

    if-nez v5, :cond_0

    .line 385
    new-instance v5, Ljava/io/IOException;

    new-instance v6, Ljava/lang/StringBuffer;

    invoke-direct {v6}, Ljava/lang/StringBuffer;-><init>()V

    const-string v7, "Not a directory "

    invoke-virtual {v6, v7}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v6

    iget-object v7, p0, Lorg/microemu/cldc/file/FileSystemFileConnection;->file:Ljava/io/File;

    invoke-virtual {v7}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object v7

    invoke-virtual {v6, v7}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v6

    invoke-virtual {v6}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object v6

    invoke-direct {v5, v6}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V

    throw v5

    .line 388
    :cond_0
    const/4 v1, 0x0

    .line 390
    .local v1, filenameFilter:Ljava/io/FilenameFilter;
    iget-object v5, p0, Lorg/microemu/cldc/file/FileSystemFileConnection;->file:Ljava/io/File;

    invoke-virtual {v5, v1}, Ljava/io/File;->listFiles(Ljava/io/FilenameFilter;)[Ljava/io/File;

    move-result-object v2

    .line 391
    .local v2, files:[Ljava/io/File;
    if-nez v2, :cond_1

    .line 392
    new-instance v5, Ljava/util/Vector;

    invoke-direct {v5}, Ljava/util/Vector;-><init>()V

    invoke-virtual {v5}, Ljava/util/Vector;->elements()Ljava/util/Enumeration;

    move-result-object v5

    .line 406
    :goto_0
    return-object v5

    .line 394
    :cond_1
    new-instance v4, Ljava/util/Vector;

    invoke-direct {v4}, Ljava/util/Vector;-><init>()V

    .line 395
    .local v4, list:Ljava/util/Vector;
    const/4 v3, 0x0

    .local v3, i:I
    :goto_1
    array-length v5, v2

    if-ge v3, v5, :cond_4

    .line 396
    aget-object v0, v2, v3

    .line 397
    .local v0, child:Ljava/io/File;
    if-nez p2, :cond_2

    invoke-virtual {v0}, Ljava/io/File;->isHidden()Z

    move-result v5

    if-eqz v5, :cond_2

    .line 395
    :goto_2
    add-int/lit8 v3, v3, 0x1

    goto :goto_1

    .line 400
    :cond_2
    invoke-virtual {v0}, Ljava/io/File;->isDirectory()Z

    move-result v5

    if-eqz v5, :cond_3

    .line 401
    new-instance v5, Ljava/lang/StringBuffer;

    invoke-direct {v5}, Ljava/lang/StringBuffer;-><init>()V

    invoke-virtual {v0}, Ljava/io/File;->getName()Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v5, v6}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v5

    const/16 v6, 0x2f

    invoke-virtual {v5, v6}, Ljava/lang/StringBuffer;->append(C)Ljava/lang/StringBuffer;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v4, v5}, Ljava/util/Vector;->add(Ljava/lang/Object;)Z

    goto :goto_2

    .line 403
    :cond_3
    invoke-virtual {v0}, Ljava/io/File;->getName()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v4, v5}, Ljava/util/Vector;->add(Ljava/lang/Object;)Z

    goto :goto_2

    .line 406
    .end local v0           #child:Ljava/io/File;
    :cond_4
    invoke-virtual {v4}, Ljava/util/Vector;->elements()Ljava/util/Enumeration;

    move-result-object v5

    goto :goto_0
.end method

.method static listRoots(Ljava/lang/String;Ljava/lang/String;)Ljava/util/Enumeration;
    .locals 6
    .parameter "fsRootConfig"
    .parameter "fsSingleConfig"

    .prologue
    .line 163
    if-eqz p1, :cond_2

    .line 164
    const/4 v4, 0x1

    new-array v1, v4, [Ljava/io/File;

    .line 165
    .local v1, files:[Ljava/io/File;
    const/4 v4, 0x0

    new-instance v5, Ljava/lang/StringBuffer;

    invoke-direct {v5}, Ljava/lang/StringBuffer;-><init>()V

    invoke-virtual {v5, p0}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v5

    invoke-virtual {v5, p1}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object v5

    invoke-static {v5}, Lorg/microemu/cldc/file/FileSystemFileConnection;->getRoot(Ljava/lang/String;)Ljava/io/File;

    move-result-object v5

    aput-object v5, v1, v4

    .line 172
    :cond_0
    new-instance v3, Ljava/util/Vector;

    invoke-direct {v3}, Ljava/util/Vector;-><init>()V

    .line 173
    .local v3, list:Ljava/util/Vector;
    const/4 v2, 0x0

    .local v2, i:I
    :goto_0
    array-length v4, v1

    if-ge v2, v4, :cond_4

    .line 174
    aget-object v0, v1, v2

    .line 175
    .local v0, file:Ljava/io/File;
    invoke-virtual {v0}, Ljava/io/File;->isHidden()Z

    move-result v4

    if-eqz v4, :cond_3

    .line 173
    :cond_1
    :goto_1
    add-int/lit8 v2, v2, 0x1

    goto :goto_0

    .line 167
    .end local v1           #files:[Ljava/io/File;
    .end local v3           #list:Ljava/util/Vector;
    .end local v2           #i:I
    .end local v0           #file:Ljava/io/File;
    :cond_2
    invoke-static {p0}, Lorg/microemu/cldc/file/FileSystemFileConnection;->getRoot(Ljava/lang/String;)Ljava/io/File;

    move-result-object v4

    invoke-virtual {v4}, Ljava/io/File;->listFiles()[Ljava/io/File;

    move-result-object v1

    .line 168
    .restart local v1       #files:[Ljava/io/File;
    if-nez v1, :cond_0

    .line 169
    new-instance v4, Ljava/util/Vector;

    invoke-direct {v4}, Ljava/util/Vector;-><init>()V

    invoke-virtual {v4}, Ljava/util/Vector;->elements()Ljava/util/Enumeration;

    move-result-object v4

    .line 182
    :goto_2
    return-object v4

    .line 178
    .restart local v0       #file:Ljava/io/File;
    .restart local v2       #i:I
    .restart local v3       #list:Ljava/util/Vector;
    :cond_3
    invoke-virtual {v0}, Ljava/io/File;->isDirectory()Z

    move-result v4

    if-eqz v4, :cond_1

    .line 179
    new-instance v4, Ljava/lang/StringBuffer;

    invoke-direct {v4}, Ljava/lang/StringBuffer;-><init>()V

    invoke-virtual {v0}, Ljava/io/File;->getName()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v4, v5}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v4

    const/16 v5, 0x2f

    invoke-virtual {v4, v5}, Ljava/lang/StringBuffer;->append(C)Ljava/lang/StringBuffer;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/util/Vector;->add(Ljava/lang/Object;)Z

    goto :goto_1

    .line 182
    .end local v0           #file:Ljava/io/File;
    :cond_4
    invoke-virtual {v3}, Ljava/util/Vector;->elements()Ljava/util/Enumeration;

    move-result-object v4

    goto :goto_2
.end method

.method private openOutputStream(Z)Ljava/io/OutputStream;
    .locals 2
    .parameter "append"
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .prologue
    .line 452
    invoke-direct {p0}, Lorg/microemu/cldc/file/FileSystemFileConnection;->throwClosed()V

    .line 453
    invoke-direct {p0}, Lorg/microemu/cldc/file/FileSystemFileConnection;->throwOpenDirectory()V

    .line 455
    iget-object v0, p0, Lorg/microemu/cldc/file/FileSystemFileConnection;->opendOutputStream:Ljava/io/OutputStream;

    if-eqz v0, :cond_0

    .line 456
    new-instance v0, Ljava/io/IOException;

    const-string v1, "OutputStream already opened"

    invoke-direct {v0, v1}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V

    throw v0

    .line 462
    :cond_0
    new-instance v0, Lorg/microemu/cldc/file/FileSystemFileConnection$14;

    invoke-direct {v0, p0, p1}, Lorg/microemu/cldc/file/FileSystemFileConnection$14;-><init>(Lorg/microemu/cldc/file/FileSystemFileConnection;Z)V

    invoke-direct {p0, v0}, Lorg/microemu/cldc/file/FileSystemFileConnection;->doPrivilegedIO(Ljava/security/PrivilegedExceptionAction;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/io/OutputStream;

    iput-object v0, p0, Lorg/microemu/cldc/file/FileSystemFileConnection;->opendOutputStream:Ljava/io/OutputStream;

    .line 472
    iget-object v0, p0, Lorg/microemu/cldc/file/FileSystemFileConnection;->opendOutputStream:Ljava/io/OutputStream;

    return-object v0
.end method

.method private throwClosed()V
    .locals 2
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljavax/microedition/io/file/ConnectionClosedException;
        }
    .end annotation

    .prologue
    .line 619
    iget-object v0, p0, Lorg/microemu/cldc/file/FileSystemFileConnection;->file:Ljava/io/File;

    if-nez v0, :cond_1

    .line 620
    iget-object v0, p0, Lorg/microemu/cldc/file/FileSystemFileConnection;->locationClosedFrom:Ljava/lang/Throwable;

    if-eqz v0, :cond_0

    .line 621
    iget-object v0, p0, Lorg/microemu/cldc/file/FileSystemFileConnection;->locationClosedFrom:Ljava/lang/Throwable;

    invoke-virtual {v0}, Ljava/lang/Throwable;->printStackTrace()V

    .line 623
    :cond_0
    new-instance v0, Ljavax/microedition/io/file/ConnectionClosedException;

    const-string v1, "Connection already closed"

    invoke-direct {v0, v1}, Ljavax/microedition/io/file/ConnectionClosedException;-><init>(Ljava/lang/String;)V

    throw v0

    .line 625
    :cond_1
    return-void
.end method

.method private throwOpenDirectory()V
    .locals 2
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .prologue
    .line 414
    iget-boolean v0, p0, Lorg/microemu/cldc/file/FileSystemFileConnection;->isDirectory:Z

    if-eqz v0, :cond_0

    .line 415
    new-instance v0, Ljava/io/IOException;

    const-string v1, "Unable to open Stream on directory"

    invoke-direct {v0, v1}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V

    throw v0

    .line 417
    :cond_0
    return-void
.end method


# virtual methods
.method public availableSize()J
    .locals 2

    .prologue
    .line 186
    invoke-direct {p0}, Lorg/microemu/cldc/file/FileSystemFileConnection;->throwClosed()V

    .line 187
    iget-object v0, p0, Lorg/microemu/cldc/file/FileSystemFileConnection;->fsRoot:Ljava/io/File;

    if-nez v0, :cond_0

    .line 188
    const-wide/16 v0, -0x1

    .line 190
    :goto_0
    return-wide v0

    :cond_0
    const-string v0, "getFreeSpace"

    invoke-direct {p0, v0}, Lorg/microemu/cldc/file/FileSystemFileConnection;->getFileValueJava6(Ljava/lang/String;)J

    move-result-wide v0

    goto :goto_0
.end method

.method public canRead()Z
    .locals 1

    .prologue
    .line 202
    invoke-direct {p0}, Lorg/microemu/cldc/file/FileSystemFileConnection;->throwClosed()V

    .line 203
    new-instance v0, Lorg/microemu/cldc/file/FileSystemFileConnection$2;

    invoke-direct {v0, p0}, Lorg/microemu/cldc/file/FileSystemFileConnection$2;-><init>(Lorg/microemu/cldc/file/FileSystemFileConnection;)V

    invoke-direct {p0, v0}, Lorg/microemu/cldc/file/FileSystemFileConnection;->doPrivilegedBoolean(Lorg/microemu/cldc/file/FileSystemFileConnection$PrivilegedBooleanAction;)Z

    move-result v0

    return v0
.end method

.method public canWrite()Z
    .locals 1

    .prologue
    .line 211
    invoke-direct {p0}, Lorg/microemu/cldc/file/FileSystemFileConnection;->throwClosed()V

    .line 212
    new-instance v0, Lorg/microemu/cldc/file/FileSystemFileConnection$3;

    invoke-direct {v0, p0}, Lorg/microemu/cldc/file/FileSystemFileConnection$3;-><init>(Lorg/microemu/cldc/file/FileSystemFileConnection;)V

    invoke-direct {p0, v0}, Lorg/microemu/cldc/file/FileSystemFileConnection;->doPrivilegedBoolean(Lorg/microemu/cldc/file/FileSystemFileConnection$PrivilegedBooleanAction;)Z

    move-result v0

    return v0
.end method

.method public close()V
    .locals 1
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .prologue
    .line 608
    iget-object v0, p0, Lorg/microemu/cldc/file/FileSystemFileConnection;->file:Ljava/io/File;

    if-eqz v0, :cond_1

    .line 609
    iget-object v0, p0, Lorg/microemu/cldc/file/FileSystemFileConnection;->notifyClosed:Lorg/microemu/cldc/file/FileSystemConnectorImpl;

    if-eqz v0, :cond_0

    .line 610
    iget-object v0, p0, Lorg/microemu/cldc/file/FileSystemFileConnection;->notifyClosed:Lorg/microemu/cldc/file/FileSystemConnectorImpl;

    invoke-virtual {v0, p0}, Lorg/microemu/cldc/file/FileSystemConnectorImpl;->notifyClosed(Lorg/microemu/cldc/file/FileSystemFileConnection;)V

    .line 612
    :cond_0
    new-instance v0, Ljava/lang/Throwable;

    invoke-direct {v0}, Ljava/lang/Throwable;-><init>()V

    iput-object v0, p0, Lorg/microemu/cldc/file/FileSystemFileConnection;->locationClosedFrom:Ljava/lang/Throwable;

    .line 613
    iget-object v0, p0, Lorg/microemu/cldc/file/FileSystemFileConnection;->locationClosedFrom:Ljava/lang/Throwable;

    invoke-virtual {v0}, Ljava/lang/Throwable;->fillInStackTrace()Ljava/lang/Throwable;

    .line 614
    const/4 v0, 0x0

    iput-object v0, p0, Lorg/microemu/cldc/file/FileSystemFileConnection;->file:Ljava/io/File;

    .line 616
    :cond_1
    return-void
.end method

.method public create()V
    .locals 1
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .prologue
    .line 220
    invoke-direct {p0}, Lorg/microemu/cldc/file/FileSystemFileConnection;->throwClosed()V

    .line 221
    new-instance v0, Lorg/microemu/cldc/file/FileSystemFileConnection$4;

    invoke-direct {v0, p0}, Lorg/microemu/cldc/file/FileSystemFileConnection$4;-><init>(Lorg/microemu/cldc/file/FileSystemFileConnection;)V

    invoke-direct {p0, v0}, Lorg/microemu/cldc/file/FileSystemFileConnection;->doPrivilegedIO(Ljava/security/PrivilegedExceptionAction;)Ljava/lang/Object;

    .line 229
    return-void
.end method

.method public delete()V
    .locals 1
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .prologue
    .line 232
    invoke-direct {p0}, Lorg/microemu/cldc/file/FileSystemFileConnection;->throwClosed()V

    .line 233
    new-instance v0, Lorg/microemu/cldc/file/FileSystemFileConnection$5;

    invoke-direct {v0, p0}, Lorg/microemu/cldc/file/FileSystemFileConnection$5;-><init>(Lorg/microemu/cldc/file/FileSystemFileConnection;)V

    invoke-direct {p0, v0}, Lorg/microemu/cldc/file/FileSystemFileConnection;->doPrivilegedIO(Ljava/security/PrivilegedExceptionAction;)Ljava/lang/Object;

    .line 241
    return-void
.end method

.method public directorySize(Z)J
    .locals 2
    .parameter "includeSubDirs"
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .prologue
    .line 244
    invoke-direct {p0}, Lorg/microemu/cldc/file/FileSystemFileConnection;->throwClosed()V

    .line 245
    new-instance v0, Lorg/microemu/cldc/file/FileSystemFileConnection$6;

    invoke-direct {v0, p0, p1}, Lorg/microemu/cldc/file/FileSystemFileConnection$6;-><init>(Lorg/microemu/cldc/file/FileSystemFileConnection;Z)V

    invoke-direct {p0, v0}, Lorg/microemu/cldc/file/FileSystemFileConnection;->doPrivilegedIO(Ljava/security/PrivilegedExceptionAction;)Ljava/lang/Object;

    move-result-object p0

    .end local p0
    check-cast p0, Ljava/lang/Long;

    invoke-virtual {p0}, Ljava/lang/Long;->longValue()J

    move-result-wide v0

    return-wide v0
.end method

.method public exists()Z
    .locals 1

    .prologue
    .line 276
    invoke-direct {p0}, Lorg/microemu/cldc/file/FileSystemFileConnection;->throwClosed()V

    .line 277
    new-instance v0, Lorg/microemu/cldc/file/FileSystemFileConnection$7;

    invoke-direct {v0, p0}, Lorg/microemu/cldc/file/FileSystemFileConnection$7;-><init>(Lorg/microemu/cldc/file/FileSystemFileConnection;)V

    invoke-direct {p0, v0}, Lorg/microemu/cldc/file/FileSystemFileConnection;->doPrivilegedBoolean(Lorg/microemu/cldc/file/FileSystemFileConnection$PrivilegedBooleanAction;)Z

    move-result v0

    return v0
.end method

.method public fileSize()J
    .locals 2
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .prologue
    .line 285
    invoke-direct {p0}, Lorg/microemu/cldc/file/FileSystemFileConnection;->throwClosed()V

    .line 286
    new-instance v0, Lorg/microemu/cldc/file/FileSystemFileConnection$8;

    invoke-direct {v0, p0}, Lorg/microemu/cldc/file/FileSystemFileConnection$8;-><init>(Lorg/microemu/cldc/file/FileSystemFileConnection;)V

    invoke-direct {p0, v0}, Lorg/microemu/cldc/file/FileSystemFileConnection;->doPrivilegedIO(Ljava/security/PrivilegedExceptionAction;)Ljava/lang/Object;

    move-result-object p0

    .end local p0
    check-cast p0, Ljava/lang/Long;

    invoke-virtual {p0}, Ljava/lang/Long;->longValue()J

    move-result-wide v0

    return-wide v0
.end method

.method public getName()Ljava/lang/String;
    .locals 2

    .prologue
    .line 295
    invoke-direct {p0}, Lorg/microemu/cldc/file/FileSystemFileConnection;->throwClosed()V

    .line 297
    iget-boolean v0, p0, Lorg/microemu/cldc/file/FileSystemFileConnection;->isRoot:Z

    if-eqz v0, :cond_0

    .line 298
    const-string v0, ""

    .line 304
    :goto_0
    return-object v0

    .line 301
    :cond_0
    iget-boolean v0, p0, Lorg/microemu/cldc/file/FileSystemFileConnection;->isDirectory:Z

    if-eqz v0, :cond_1

    .line 302
    new-instance v0, Ljava/lang/StringBuffer;

    invoke-direct {v0}, Ljava/lang/StringBuffer;-><init>()V

    iget-object v1, p0, Lorg/microemu/cldc/file/FileSystemFileConnection;->file:Ljava/io/File;

    invoke-virtual {v1}, Ljava/io/File;->getName()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v0

    const/16 v1, 0x2f

    invoke-virtual {v0, v1}, Ljava/lang/StringBuffer;->append(C)Ljava/lang/StringBuffer;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object v0

    goto :goto_0

    .line 304
    :cond_1
    iget-object v0, p0, Lorg/microemu/cldc/file/FileSystemFileConnection;->file:Ljava/io/File;

    invoke-virtual {v0}, Ljava/io/File;->getName()Ljava/lang/String;

    move-result-object v0

    goto :goto_0
.end method

.method public getPath()Ljava/lang/String;
    .locals 5

    .prologue
    const/16 v3, 0x2f

    .line 310
    invoke-direct {p0}, Lorg/microemu/cldc/file/FileSystemFileConnection;->throwClosed()V

    .line 314
    iget-boolean v1, p0, Lorg/microemu/cldc/file/FileSystemFileConnection;->isRoot:Z

    if-eqz v1, :cond_0

    .line 315
    new-instance v1, Ljava/lang/StringBuffer;

    invoke-direct {v1}, Ljava/lang/StringBuffer;-><init>()V

    invoke-virtual {v1, v3}, Ljava/lang/StringBuffer;->append(C)Ljava/lang/StringBuffer;

    move-result-object v1

    iget-object v2, p0, Lorg/microemu/cldc/file/FileSystemFileConnection;->fullPath:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v1

    invoke-virtual {v1, v3}, Ljava/lang/StringBuffer;->append(C)Ljava/lang/StringBuffer;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object v1

    .line 322
    :goto_0
    return-object v1

    .line 318
    :cond_0
    iget-object v1, p0, Lorg/microemu/cldc/file/FileSystemFileConnection;->fullPath:Ljava/lang/String;

    invoke-virtual {v1, v3}, Ljava/lang/String;->lastIndexOf(I)I

    move-result v0

    .line 319
    .local v0, pathEnd:I
    const/4 v1, -0x1

    if-ne v0, v1, :cond_1

    .line 320
    const-string v1, "/"

    goto :goto_0

    .line 322
    :cond_1
    new-instance v1, Ljava/lang/StringBuffer;

    invoke-direct {v1}, Ljava/lang/StringBuffer;-><init>()V

    invoke-virtual {v1, v3}, Ljava/lang/StringBuffer;->append(C)Ljava/lang/StringBuffer;

    move-result-object v1

    iget-object v2, p0, Lorg/microemu/cldc/file/FileSystemFileConnection;->fullPath:Ljava/lang/String;

    const/4 v3, 0x0

    add-int/lit8 v4, v0, 0x1

    invoke-virtual {v2, v3, v4}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object v1

    goto :goto_0
.end method

.method public getURL()Ljava/lang/String;
    .locals 2

    .prologue
    .line 327
    invoke-direct {p0}, Lorg/microemu/cldc/file/FileSystemFileConnection;->throwClosed()V

    .line 332
    new-instance v0, Ljava/lang/StringBuffer;

    invoke-direct {v0}, Ljava/lang/StringBuffer;-><init>()V

    const-string v1, "file://"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v0

    iget-object v1, p0, Lorg/microemu/cldc/file/FileSystemFileConnection;->host:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v0

    const/16 v1, 0x2f

    invoke-virtual {v0, v1}, Ljava/lang/StringBuffer;->append(C)Ljava/lang/StringBuffer;

    move-result-object v0

    iget-object v1, p0, Lorg/microemu/cldc/file/FileSystemFileConnection;->fullPath:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v0

    iget-boolean v1, p0, Lorg/microemu/cldc/file/FileSystemFileConnection;->isDirectory:Z

    if-eqz v1, :cond_0

    const-string v1, "/"

    :goto_0
    invoke-virtual {v0, v1}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object v0

    return-object v0

    :cond_0
    const-string v1, ""

    goto :goto_0
.end method

.method public isDirectory()Z
    .locals 1

    .prologue
    .line 336
    invoke-direct {p0}, Lorg/microemu/cldc/file/FileSystemFileConnection;->throwClosed()V

    .line 337
    iget-boolean v0, p0, Lorg/microemu/cldc/file/FileSystemFileConnection;->isDirectory:Z

    return v0
.end method

.method public isHidden()Z
    .locals 1

    .prologue
    .line 341
    invoke-direct {p0}, Lorg/microemu/cldc/file/FileSystemFileConnection;->throwClosed()V

    .line 342
    new-instance v0, Lorg/microemu/cldc/file/FileSystemFileConnection$9;

    invoke-direct {v0, p0}, Lorg/microemu/cldc/file/FileSystemFileConnection$9;-><init>(Lorg/microemu/cldc/file/FileSystemFileConnection;)V

    invoke-direct {p0, v0}, Lorg/microemu/cldc/file/FileSystemFileConnection;->doPrivilegedBoolean(Lorg/microemu/cldc/file/FileSystemFileConnection$PrivilegedBooleanAction;)Z

    move-result v0

    return v0
.end method

.method public isOpen()Z
    .locals 1

    .prologue
    .line 410
    iget-object v0, p0, Lorg/microemu/cldc/file/FileSystemFileConnection;->file:Ljava/io/File;

    if-eqz v0, :cond_0

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public lastModified()J
    .locals 2

    .prologue
    .line 350
    invoke-direct {p0}, Lorg/microemu/cldc/file/FileSystemFileConnection;->throwClosed()V

    .line 351
    new-instance v0, Lorg/microemu/cldc/file/FileSystemFileConnection$10;

    invoke-direct {v0, p0}, Lorg/microemu/cldc/file/FileSystemFileConnection$10;-><init>(Lorg/microemu/cldc/file/FileSystemFileConnection;)V

    iget-object v1, p0, Lorg/microemu/cldc/file/FileSystemFileConnection;->acc:Ljava/security/AccessControlContext;

    invoke-static {v0, v1}, Ljava/security/AccessController;->doPrivileged(Ljava/security/PrivilegedAction;Ljava/security/AccessControlContext;)Ljava/lang/Object;

    move-result-object p0

    .end local p0
    check-cast p0, Ljava/lang/Long;

    invoke-virtual {p0}, Ljava/lang/Long;->longValue()J

    move-result-wide v0

    return-wide v0
.end method

.method public list()Ljava/util/Enumeration;
    .locals 2
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .prologue
    .line 371
    const/4 v0, 0x0

    const/4 v1, 0x0

    invoke-virtual {p0, v0, v1}, Lorg/microemu/cldc/file/FileSystemFileConnection;->list(Ljava/lang/String;Z)Ljava/util/Enumeration;

    move-result-object v0

    return-object v0
.end method

.method public list(Ljava/lang/String;Z)Ljava/util/Enumeration;
    .locals 1
    .parameter "filter"
    .parameter "includeHidden"
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .prologue
    .line 375
    invoke-direct {p0}, Lorg/microemu/cldc/file/FileSystemFileConnection;->throwClosed()V

    .line 376
    new-instance v0, Lorg/microemu/cldc/file/FileSystemFileConnection$12;

    invoke-direct {v0, p0, p1, p2}, Lorg/microemu/cldc/file/FileSystemFileConnection$12;-><init>(Lorg/microemu/cldc/file/FileSystemFileConnection;Ljava/lang/String;Z)V

    invoke-direct {p0, v0}, Lorg/microemu/cldc/file/FileSystemFileConnection;->doPrivilegedIO(Ljava/security/PrivilegedExceptionAction;)Ljava/lang/Object;

    move-result-object p0

    .end local p0
    check-cast p0, Ljava/util/Enumeration;

    return-object p0
.end method

.method public mkdir()V
    .locals 1
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .prologue
    .line 359
    invoke-direct {p0}, Lorg/microemu/cldc/file/FileSystemFileConnection;->throwClosed()V

    .line 360
    new-instance v0, Lorg/microemu/cldc/file/FileSystemFileConnection$11;

    invoke-direct {v0, p0}, Lorg/microemu/cldc/file/FileSystemFileConnection$11;-><init>(Lorg/microemu/cldc/file/FileSystemFileConnection;)V

    invoke-direct {p0, v0}, Lorg/microemu/cldc/file/FileSystemFileConnection;->doPrivilegedIO(Ljava/security/PrivilegedExceptionAction;)Ljava/lang/Object;

    .line 368
    return-void
.end method

.method public openDataInputStream()Ljava/io/DataInputStream;
    .locals 2
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .prologue
    .line 444
    new-instance v0, Ljava/io/DataInputStream;

    invoke-virtual {p0}, Lorg/microemu/cldc/file/FileSystemFileConnection;->openInputStream()Ljava/io/InputStream;

    move-result-object v1

    invoke-direct {v0, v1}, Ljava/io/DataInputStream;-><init>(Ljava/io/InputStream;)V

    return-object v0
.end method

.method public openDataOutputStream()Ljava/io/DataOutputStream;
    .locals 2
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .prologue
    .line 476
    new-instance v0, Ljava/io/DataOutputStream;

    invoke-virtual {p0}, Lorg/microemu/cldc/file/FileSystemFileConnection;->openOutputStream()Ljava/io/OutputStream;

    move-result-object v1

    invoke-direct {v0, v1}, Ljava/io/DataOutputStream;-><init>(Ljava/io/OutputStream;)V

    return-object v0
.end method

.method public openInputStream()Ljava/io/InputStream;
    .locals 2
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .prologue
    .line 420
    invoke-direct {p0}, Lorg/microemu/cldc/file/FileSystemFileConnection;->throwClosed()V

    .line 421
    invoke-direct {p0}, Lorg/microemu/cldc/file/FileSystemFileConnection;->throwOpenDirectory()V

    .line 423
    iget-object v0, p0, Lorg/microemu/cldc/file/FileSystemFileConnection;->opendInputStream:Ljava/io/InputStream;

    if-eqz v0, :cond_0

    .line 424
    new-instance v0, Ljava/io/IOException;

    const-string v1, "InputStream already opened"

    invoke-direct {v0, v1}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V

    throw v0

    .line 430
    :cond_0
    new-instance v0, Lorg/microemu/cldc/file/FileSystemFileConnection$13;

    invoke-direct {v0, p0}, Lorg/microemu/cldc/file/FileSystemFileConnection$13;-><init>(Lorg/microemu/cldc/file/FileSystemFileConnection;)V

    invoke-direct {p0, v0}, Lorg/microemu/cldc/file/FileSystemFileConnection;->doPrivilegedIO(Ljava/security/PrivilegedExceptionAction;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/io/InputStream;

    iput-object v0, p0, Lorg/microemu/cldc/file/FileSystemFileConnection;->opendInputStream:Ljava/io/InputStream;

    .line 440
    iget-object v0, p0, Lorg/microemu/cldc/file/FileSystemFileConnection;->opendInputStream:Ljava/io/InputStream;

    return-object v0
.end method

.method public openOutputStream()Ljava/io/OutputStream;
    .locals 1
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .prologue
    .line 448
    const/4 v0, 0x0

    invoke-direct {p0, v0}, Lorg/microemu/cldc/file/FileSystemFileConnection;->openOutputStream(Z)Ljava/io/OutputStream;

    move-result-object v0

    return-object v0
.end method

.method public openOutputStream(J)Ljava/io/OutputStream;
    .locals 2
    .parameter "byteOffset"
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .prologue
    .line 480
    invoke-direct {p0}, Lorg/microemu/cldc/file/FileSystemFileConnection;->throwClosed()V

    .line 481
    invoke-direct {p0}, Lorg/microemu/cldc/file/FileSystemFileConnection;->throwOpenDirectory()V

    .line 482
    iget-object v0, p0, Lorg/microemu/cldc/file/FileSystemFileConnection;->opendOutputStream:Ljava/io/OutputStream;

    if-eqz v0, :cond_0

    .line 483
    new-instance v0, Ljava/io/IOException;

    const-string v1, "OutputStream already opened"

    invoke-direct {v0, v1}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V

    throw v0

    .line 485
    :cond_0
    invoke-virtual {p0, p1, p2}, Lorg/microemu/cldc/file/FileSystemFileConnection;->truncate(J)V

    .line 486
    const/4 v0, 0x1

    invoke-direct {p0, v0}, Lorg/microemu/cldc/file/FileSystemFileConnection;->openOutputStream(Z)Ljava/io/OutputStream;

    move-result-object v0

    return-object v0
.end method

.method public rename(Ljava/lang/String;)V
    .locals 3
    .parameter "newName"
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .prologue
    .line 490
    invoke-direct {p0}, Lorg/microemu/cldc/file/FileSystemFileConnection;->throwClosed()V

    .line 491
    const/16 v0, 0x2f

    invoke-virtual {p1, v0}, Ljava/lang/String;->indexOf(I)I

    move-result v0

    const/4 v1, -0x1

    if-eq v0, v1, :cond_0

    .line 492
    new-instance v0, Ljava/lang/IllegalArgumentException;

    new-instance v1, Ljava/lang/StringBuffer;

    invoke-direct {v1}, Ljava/lang/StringBuffer;-><init>()V

    const-string v2, "Name contains path specification "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v1

    invoke-virtual {v1, p1}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw v0

    .line 494
    :cond_0
    new-instance v0, Lorg/microemu/cldc/file/FileSystemFileConnection$15;

    invoke-direct {v0, p0, p1}, Lorg/microemu/cldc/file/FileSystemFileConnection$15;-><init>(Lorg/microemu/cldc/file/FileSystemFileConnection;Ljava/lang/String;)V

    invoke-direct {p0, v0}, Lorg/microemu/cldc/file/FileSystemFileConnection;->doPrivilegedIO(Ljava/security/PrivilegedExceptionAction;)Ljava/lang/Object;

    .line 504
    new-instance v0, Ljava/lang/StringBuffer;

    invoke-direct {v0}, Ljava/lang/StringBuffer;-><init>()V

    invoke-virtual {p0}, Lorg/microemu/cldc/file/FileSystemFileConnection;->getPath()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v0

    invoke-virtual {v0, p1}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lorg/microemu/cldc/file/FileSystemFileConnection;->fullPath:Ljava/lang/String;

    .line 505
    return-void
.end method

.method public setFileConnection(Ljava/lang/String;)V
    .locals 0
    .parameter "s"
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .prologue
    .line 508
    invoke-direct {p0}, Lorg/microemu/cldc/file/FileSystemFileConnection;->throwClosed()V

    .line 510
    return-void
.end method

.method public setHidden(Z)V
    .locals 0
    .parameter "hidden"
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .prologue
    .line 513
    invoke-direct {p0}, Lorg/microemu/cldc/file/FileSystemFileConnection;->throwClosed()V

    .line 514
    return-void
.end method

.method public setReadable(Z)V
    .locals 2
    .parameter "readable"
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .prologue
    .line 566
    invoke-direct {p0}, Lorg/microemu/cldc/file/FileSystemFileConnection;->throwClosed()V

    .line 567
    const-string v0, "setReadable"

    new-instance v1, Ljava/lang/Boolean;

    invoke-direct {v1, p1}, Ljava/lang/Boolean;-><init>(Z)V

    invoke-direct {p0, v0, v1}, Lorg/microemu/cldc/file/FileSystemFileConnection;->fileSetJava16(Ljava/lang/String;Ljava/lang/Boolean;)V

    .line 568
    return-void
.end method

.method public setWritable(Z)V
    .locals 2
    .parameter "writable"
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .prologue
    .line 571
    invoke-direct {p0}, Lorg/microemu/cldc/file/FileSystemFileConnection;->throwClosed()V

    .line 572
    if-nez p1, :cond_0

    .line 573
    new-instance v0, Lorg/microemu/cldc/file/FileSystemFileConnection$18;

    invoke-direct {v0, p0}, Lorg/microemu/cldc/file/FileSystemFileConnection$18;-><init>(Lorg/microemu/cldc/file/FileSystemFileConnection;)V

    invoke-direct {p0, v0}, Lorg/microemu/cldc/file/FileSystemFileConnection;->doPrivilegedIO(Ljava/security/PrivilegedExceptionAction;)Ljava/lang/Object;

    .line 582
    :goto_0
    return-void

    .line 580
    :cond_0
    const-string v0, "setWritable"

    new-instance v1, Ljava/lang/Boolean;

    invoke-direct {v1, p1}, Ljava/lang/Boolean;-><init>(Z)V

    invoke-direct {p0, v0, v1}, Lorg/microemu/cldc/file/FileSystemFileConnection;->fileSetJava16(Ljava/lang/String;Ljava/lang/Boolean;)V

    goto :goto_0
.end method

.method public totalSize()J
    .locals 2

    .prologue
    .line 194
    invoke-direct {p0}, Lorg/microemu/cldc/file/FileSystemFileConnection;->throwClosed()V

    .line 195
    iget-object v0, p0, Lorg/microemu/cldc/file/FileSystemFileConnection;->fsRoot:Ljava/io/File;

    if-nez v0, :cond_0

    .line 196
    const-wide/16 v0, -0x1

    .line 198
    :goto_0
    return-wide v0

    :cond_0
    const-string v0, "getTotalSpace"

    invoke-direct {p0, v0}, Lorg/microemu/cldc/file/FileSystemFileConnection;->getFileValueJava6(Ljava/lang/String;)J

    move-result-wide v0

    goto :goto_0
.end method

.method public truncate(J)V
    .locals 1
    .parameter "byteOffset"
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .prologue
    .line 585
    invoke-direct {p0}, Lorg/microemu/cldc/file/FileSystemFileConnection;->throwClosed()V

    .line 586
    new-instance v0, Lorg/microemu/cldc/file/FileSystemFileConnection$19;

    invoke-direct {v0, p0, p1, p2}, Lorg/microemu/cldc/file/FileSystemFileConnection$19;-><init>(Lorg/microemu/cldc/file/FileSystemFileConnection;J)V

    invoke-direct {p0, v0}, Lorg/microemu/cldc/file/FileSystemFileConnection;->doPrivilegedIO(Ljava/security/PrivilegedExceptionAction;)Ljava/lang/Object;

    .line 597
    return-void
.end method

.method public usedSize()J
    .locals 3

    .prologue
    .line 601
    :try_start_0
    invoke-virtual {p0}, Lorg/microemu/cldc/file/FileSystemFileConnection;->fileSize()J
    :try_end_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0

    move-result-wide v1

    .line 603
    :goto_0
    return-wide v1

    .line 602
    :catch_0
    move-exception v0

    .line 603
    .local v0, e:Ljava/io/IOException;
    const-wide/16 v1, -0x1

    goto :goto_0
.end method
